home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6231 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  38 lines

  1. Path: ix.netcom.com!netnews
  2. From: chosak@ix.netcom.com (Andrew Chosak)
  3. Newsgroups: comp.lang.c++
  4. Subject: using my own libraries (newbie urgent)
  5. Date: Mon, 12 Feb 1996 04:36:25 GMT
  6. Organization: Netcom
  7. Message-ID: <311ec2e6.4502345@nntp.ix.netcom.com>
  8. NNTP-Posting-Host: ix-nyc14-06.ix.netcom.com
  9. X-NETCOM-Date: Sun Feb 11  5:37:12 PM PST 1996
  10. X-Newsreader: Forte Agent .99c/16.141
  11.  
  12. Hello!
  13. I am just playing around with making my own header files but I can't
  14. get it to work. Okay, I make a file called geometry.h with all
  15. function declarations....
  16.  
  17. basically just like
  18. double areacirc(double radius);
  19. double arearect(double sideone, double sidetwo);
  20. and so on.....
  21.  
  22. then I have a file called geometry.c that has
  23. #include "geometry.h"
  24. and all of my definitions for the functions
  25. double areacirc(double radius)
  26.     {
  27.     return (3.14 * radius * radius)
  28.     }
  29. and that's it
  30.  
  31. then i have like program.c
  32. which #include "geometry.h"
  33. but can't run because it says undefined function "areacirc(double)"
  34. I know all syntax is right, what's WRONG!!!
  35. Please respond ASAP, thanks
  36.  
  37. Chosak
  38.